.class Lcom/example/m6wmr/MyBalanceActivity$1;
.super Landroid/os/Handler;
.source "MyBalanceActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/MyBalanceActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/MyBalanceActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/MyBalanceActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/MyBalanceActivity$1;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    .line 185
    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/MyBalanceActivity$1;)Lcom/example/m6wmr/MyBalanceActivity;
    .locals 1

    .prologue
    .line 185
    iget-object v0, p0, Lcom/example/m6wmr/MyBalanceActivity$1;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    return-object v0
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 7
    .param p1, "msg"    # Landroid/os/Message;

    .prologue
    .line 189
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    .line 191
    iget v4, p1, Landroid/os/Message;->what:I

    packed-switch v4, :pswitch_data_0

    .line 284
    :cond_0
    :goto_0
    :pswitch_0
    iget v4, p1, Landroid/os/Message;->arg1:I

    sparse-switch v4, :sswitch_data_0

    .line 357
    :cond_1
    :goto_1
    return-void

    .line 197
    :pswitch_1
    iget-object v4, p0, Lcom/example/m6wmr/MyBalanceActivity$1;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    # getter for: Lcom/example/m6wmr/MyBalanceActivity;->tv_stayle:Landroid/widget/TextView;
    invoke-static {v4}, Lcom/example/m6wmr/MyBalanceActivity;->access$9(Lcom/example/m6wmr/MyBalanceActivity;)Landroid/widget/TextView;

    move-result-object v4

    invoke-virtual {v4}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v4

    invoke-interface {v4}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v4

    .line 198
    const-string v5, "%"

    const-string v6, ""

    invoke-virtual {v4, v5, v6}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    const-string v5, " "

    const-string v6, ""

    invoke-virtual {v4, v5, v6}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v4

    const-string v5, "1"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_0

    .line 200
    new-instance v2, Landroid/content/Intent;

    invoke-direct {v2}, Landroid/content/Intent;-><init>()V

    .line 201
    .local v2, "intent":Landroid/content/Intent;
    const-string v4, "orderid"

    const-string v5, ""

    invoke-virtual {v2, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 202
    const-string v4, "paytype"

    const-string v5, "acount"

    invoke-virtual {v2, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 203
    const-string v4, "waitpay_cost"

    iget-object v5, p0, Lcom/example/m6wmr/MyBalanceActivity$1;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    # getter for: Lcom/example/m6wmr/MyBalanceActivity;->pay_values:Ljava/lang/String;
    invoke-static {v5}, Lcom/example/m6wmr/MyBalanceActivity;->access$15(Lcom/example/m6wmr/MyBalanceActivity;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v2, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 204
    iget-object v4, p0, Lcom/example/m6wmr/MyBalanceActivity$1;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    .line 205
    const-class v5, Lcom/example/m6wmr/PayBalanceAcivity;

    .line 204
    invoke-virtual {v2, v4, v5}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 206
    iget-object v4, p0, Lcom/example/m6wmr/MyBalanceActivity$1;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    const/16 v5, 0x2718

    invoke-virtual {v4, v2, v5}, Lcom/example/m6wmr/MyBalanceActivity;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_0

    .line 214
    .end local v2    # "intent":Landroid/content/Intent;
    :pswitch_2
    iget-object v4, p0, Lcom/example/m6wmr/MyBalanceActivity$1;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    iget-object v5, p0, Lcom/example/m6wmr/MyBalanceActivity$1;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    # getter for: Lcom/example/m6wmr/MyBalanceActivity;->tv_stayle:Landroid/widget/TextView;
    invoke-static {v5}, Lcom/example/m6wmr/MyBalanceActivity;->access$9(Lcom/example/m6wmr/MyBalanceActivity;)Landroid/widget/TextView;

    move-result-object v5

    invoke-virtual {v5}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v5

    invoke-interface {v5}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v5

    # invokes: Lcom/example/m6wmr/MyBalanceActivity;->isNull(Ljava/lang/String;)Z
    invoke-static {v4, v5}, Lcom/example/m6wmr/MyBalanceActivity;->access$13(Lcom/example/m6wmr/MyBalanceActivity;Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_1

    .line 216
    iget-object v4, p0, Lcom/example/m6wmr/MyBalanceActivity$1;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    # getter for: Lcom/example/m6wmr/MyBalanceActivity;->context:Landroid/content/Context;
    invoke-static {v4}, Lcom/example/m6wmr/MyBalanceActivity;->access$16(Lcom/example/m6wmr/MyBalanceActivity;)Landroid/content/Context;

    move-result-object v4

    const-string v5, "\u63d0\u4ea4\u6570\u636e"

    const-string v6, "\u6b63\u5728\u5145\u503c\u4e2d...."

    invoke-static {v4, v5, v6}, Lmyapp/Util;->showDialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 217
    new-instance v4, Ljava/lang/Thread;

    new-instance v5, Lcom/example/m6wmr/MyBalanceActivity$1$1;

    invoke-direct {v5, p0}, Lcom/example/m6wmr/MyBalanceActivity$1$1;-><init>(Lcom/example/m6wmr/MyBalanceActivity$1;)V

    invoke-direct {v4, v5}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 235
    invoke-virtual {v4}, Ljava/lang/Thread;->start()V

    goto/16 :goto_0

    .line 246
    :pswitch_3
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 248
    :try_start_0
    new-instance v3, Lorg/json/JSONObject;

    iget-object v4, p0, Lcom/example/m6wmr/MyBalanceActivity$1;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    # getter for: Lcom/example/m6wmr/MyBalanceActivity;->getJsonString:Ljava/lang/String;
    invoke-static {v4}, Lcom/example/m6wmr/MyBalanceActivity;->access$20(Lcom/example/m6wmr/MyBalanceActivity;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 250
    .local v3, "jsonObject":Lorg/json/JSONObject;
    const-string v4, "error"

    invoke-virtual {v3, v4}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    const-string v5, "true"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_2

    .line 251
    iget-object v4, p0, Lcom/example/m6wmr/MyBalanceActivity$1;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    # getter for: Lcom/example/m6wmr/MyBalanceActivity;->context:Landroid/content/Context;
    invoke-static {v4}, Lcom/example/m6wmr/MyBalanceActivity;->access$16(Lcom/example/m6wmr/MyBalanceActivity;)Landroid/content/Context;

    move-result-object v4

    const-string v5, "\u63d0\u793a\u4fe1\u606f"

    const-string v6, "\u5145\u503c\u5931\u8d25"

    invoke-static {v4, v5, v6}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 254
    :cond_2
    const-string v4, "error"

    invoke-virtual {v3, v4}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    const-string v5, "false"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_0

    .line 256
    iget-object v4, p0, Lcom/example/m6wmr/MyBalanceActivity$1;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    # getter for: Lcom/example/m6wmr/MyBalanceActivity;->context:Landroid/content/Context;
    invoke-static {v4}, Lcom/example/m6wmr/MyBalanceActivity;->access$16(Lcom/example/m6wmr/MyBalanceActivity;)Landroid/content/Context;

    move-result-object v4

    const-string v5, "\u63d0\u793a\u4fe1\u606f"

    const-string v6, "\u5145\u503c\u6210\u529f"

    invoke-static {v4, v5, v6}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_0

    .line 259
    .end local v3    # "jsonObject":Lorg/json/JSONObject;
    :catch_0
    move-exception v1

    .line 261
    .local v1, "e":Lorg/json/JSONException;
    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V

    goto/16 :goto_0

    .line 270
    .end local v1    # "e":Lorg/json/JSONException;
    :pswitch_4
    new-instance v2, Landroid/content/Intent;

    iget-object v4, p0, Lcom/example/m6wmr/MyBalanceActivity$1;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    .line 271
    const-class v5, Lcom/example/m6wmr/LoginActivity;

    .line 270
    invoke-direct {v2, v4, v5}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 272
    .restart local v2    # "intent":Landroid/content/Intent;
    iget-object v4, p0, Lcom/example/m6wmr/MyBalanceActivity$1;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    const/16 v5, 0x64

    invoke-virtual {v4, v2, v5}, Lcom/example/m6wmr/MyBalanceActivity;->startActivityForResult(Landroid/content/Intent;I)V

    goto/16 :goto_0

    .line 286
    .end local v2    # "intent":Landroid/content/Intent;
    :sswitch_0
    iget-object v4, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v4}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v4

    const-string v5, "nologin"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_3

    .line 287
    iget-object v4, p0, Lcom/example/m6wmr/MyBalanceActivity$1;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    invoke-virtual {v4}, Lcom/example/m6wmr/MyBalanceActivity;->waitlogin()V

    goto/16 :goto_1

    .line 289
    :cond_3
    iget-object v4, p0, Lcom/example/m6wmr/MyBalanceActivity$1;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    const-string v5, "\u63d0\u793a\u4fe1\u606f"

    iget-object v6, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    invoke-virtual {v6}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v4, v5, v6}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_1

    .line 294
    :sswitch_1
    iget-object v4, p0, Lcom/example/m6wmr/MyBalanceActivity$1;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    # getter for: Lcom/example/m6wmr/MyBalanceActivity;->context:Landroid/content/Context;
    invoke-static {v4}, Lcom/example/m6wmr/MyBalanceActivity;->access$16(Lcom/example/m6wmr/MyBalanceActivity;)Landroid/content/Context;

    move-result-object v4

    const-string v5, "\u7f51\u7edc\u8fde\u63a5\u9519\u8bef"

    const/16 v6, 0xbb8

    invoke-static {v4, v5, v6}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v4

    invoke-virtual {v4}, Landroid/widget/Toast;->show()V

    goto/16 :goto_1

    .line 297
    :sswitch_2
    iget-object v4, p0, Lcom/example/m6wmr/MyBalanceActivity$1;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    invoke-virtual {v4}, Lcom/example/m6wmr/MyBalanceActivity;->waitlogin()V

    goto/16 :goto_1

    .line 302
    :sswitch_3
    new-instance v0, Ldata/ChargeAdapter;

    iget-object v4, p0, Lcom/example/m6wmr/MyBalanceActivity$1;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    iget-object v5, p0, Lcom/example/m6wmr/MyBalanceActivity$1;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    iget-object v5, v5, Lcom/example/m6wmr/MyBalanceActivity;->list:Ljava/util/List;

    invoke-direct {v0, v4, v5}, Ldata/ChargeAdapter;-><init>(Landroid/content/Context;Ljava/util/List;)V

    .line 303
    .local v0, "ca":Ldata/ChargeAdapter;
    iget-object v4, p0, Lcom/example/m6wmr/MyBalanceActivity$1;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    iget-object v4, v4, Lcom/example/m6wmr/MyBalanceActivity;->gridView:Landroid/widget/GridView;

    invoke-virtual {v4, v0}, Landroid/widget/GridView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 304
    iget-object v4, p0, Lcom/example/m6wmr/MyBalanceActivity$1;->this$0:Lcom/example/m6wmr/MyBalanceActivity;

    iget-object v4, v4, Lcom/example/m6wmr/MyBalanceActivity;->gridView:Landroid/widget/GridView;

    new-instance v5, Lcom/example/m6wmr/MyBalanceActivity$1$2;

    invoke-direct {v5, p0}, Lcom/example/m6wmr/MyBalanceActivity$1$2;-><init>(Lcom/example/m6wmr/MyBalanceActivity$1;)V

    invoke-virtual {v4, v5}, Landroid/widget/GridView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    goto/16 :goto_1

    .line 191
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
    .end packed-switch

    .line 284
    :sswitch_data_0
    .sparse-switch
        0x1 -> :sswitch_0
        0x3 -> :sswitch_2
        0x4 -> :sswitch_1
        0x14 -> :sswitch_3
    .end sparse-switch
.end method
